home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / Apple Game Sprockets / Examples / Soundboard / CGrayBox.h < prev    next >
Encoding:
Text File  |  1996-05-16  |  656 b   |  27 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    CGrayBox.h                    ©1995 Apple Computer, Inc. All rights reserved.
  3. // ===========================================================================
  4.  
  5. #pragma once
  6.  
  7. #include <LView.h>
  8.  
  9. const RGBColor                mLtGray = {0xAAAA, 0xAAAA, 0xAAAA};
  10.  
  11.  
  12. class    CGrayBox : public LView {
  13. public:
  14.     enum { class_ID = 'gBox' };
  15.  
  16.     static CGrayBox*        CreateGrayBoxStream(LStream *inStream);
  17.                             CGrayBox(LStream *inStream);
  18.                             
  19.     virtual void            Draw(RgnHandle inSuperDrawRgnH);
  20.     
  21. protected:
  22.     Boolean                    mDrawGrayBkgrnd;
  23.     
  24.     virtual void            DrawSelf();    
  25.     virtual void            ApplyForeAndBackColors();
  26. };
  27.